package com.czwj.dao;

import java.util.List;
import java.util.Map;

import com.czwj.entities.InspectionItem;

public interface InspectionItemMapper {

	int deleteByPrimaryKey(Integer id);

	int insert(InspectionItem record);

	int insertSelective(InspectionItem record);

	InspectionItem selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(InspectionItem record);

	int updateByPrimaryKey(InspectionItem record);

	int updateStatus(int id);

	int count(Map<String, Object> map);

	List<InspectionItem> search(Map<String, Object> map);
	
	int updateStatusOpen(int id);
	
	InspectionItem searchBySort(Map<String, Object> map);
	
	int sortReduce(InspectionItem ii);

	int sortAdd(InspectionItem ii0);
}
